#ifndef _LED_H_
#define _LED_H_

#define LEFTBUTTON  15 // A4 = A0 + 4 = 14 + 4
#define RIGHTBUTTON 14 // A3 = A0 + 3 = 14 + 3
#define PASSBUTTON  16 // A2 = A0 + 2 = 14 + 2
#define HORNBUTTON  15 // A1 = A0 + 1 = 14 + 1
#define BRAKEBUTTON 14 // A0

uint16_t checkinput();
void     checksleepms(uint16_t ms);
void     checksetwait(uint16_t outputbits, uint8_t lowpin, uint8_t highpin, uint16_t delayms);

void hazardsignal();
void leftsignal();
void rightsignal();
void idlesignal();

#endif
